package com.yxw.live_vod_facade.dto;




import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
//import lombok.NoArgsConstructor;
//import lombok.EqualsAndHashCode;



/*** 
*@author Hjx
*@date 2023/11/29 16:36:52
*@update 2023/11/29 16:36:52
**/
@Data
//@EqualsAndHashCode(callSuper = true)
public class YxLivePushLogDTO   implements Serializable
{
    private static final long serialVersionUID = 1170124701229L;
    /**
    *主键id
    */
    //@NotNull(message = "主键id不可为空")
    //@ApiModelProperty(value = "主键id")
    //private Long Id;
    /**
    /**
    *店铺Id
    */
    @NotNull(message = "店铺Id不可为空")
    @ApiModelProperty(value = "店铺Id")
    private Long liveShopId;
    /**
    *直播Id
    */
    @NotBlank(message = "直播Id不可为空")
    @ApiModelProperty(value = "直播Id")
    private String liveId;
    /**
    *推流播主Id
    */
    @NotBlank(message = "推流播主Id不可为空")
    @ApiModelProperty(value = "推流播主Id")
    private String pushUserId;
    /**
    *推流开始时间
    */
    @NotNull(message = "推流开始时间不可为空")
    @ApiModelProperty(value = "推流开始时间")
    private Long pushStartTime;
    /**
    *
    */
    @NotNull(message = "不可为空")
    @ApiModelProperty(value = "推流结束时间")
    private Long pushEndTime;
    /**
    *推流者Ip
    */
    //@ApiModelProperty(value = "推流者Ip")
    //private String pushIp;
    /**
    *直播会话编码
    */
    @NotBlank(message = "直播会话编码不可为空")
    @ApiModelProperty(value = "直播会话编码")
    private String liveSessionCode;
    /**
    *推流总和
    */
    @NotNull(message = "推流总和不可为空")
    @ApiModelProperty(value = "推流总和")
    private Long streamTotallLength;
    /**
    *记录时间
    */
    //@ApiModelProperty(value = "记录时间")
    //private java.util.Date createTime;
    /**
    *将DTO转换为ENTITY
    
    public YxLivePushLogEntity ConverToEntity()
    {
        YxLivePushLogEntity oYxLivePushLogEntity = new YxLivePushLogEntity ();
        //oYxLivePushLogEntity.setId(Id) ;
        oYxLivePushLogEntity.setShopId(shopId) ;
        oYxLivePushLogEntity.setLiveId(liveId) ;
        oYxLivePushLogEntity.setPushUserId(pushUserId) ;
        oYxLivePushLogEntity.setPushStartTime(pushStartTime) ;
        oYxLivePushLogEntity.setPushEndTime(pushEndTime) ;
        oYxLivePushLogEntity.setPushIp(pushIp) ;
        oYxLivePushLogEntity.setLiveSessionCode(liveSessionCode) ;
        oYxLivePushLogEntity.setStreamTotallLength(streamTotallLength) ;
        oYxLivePushLogEntity.setCreateTime(createTime) ;
        return oYxLivePushLogEntity;
    }*/
}

